// #ifdef PRIVATE || SUBSCRIPTION
import {wxAppMessageShareData,wxTimelineShareData} from '@/common/wxInit'

// #endif

export type MpShare = {
	title:string
	desc?:string,
	path?:string, // 默认为当前页面路径
	imageUrl?:string, // 默认为当前页面的截图,
	appParams?: Record<string,string>
	link?:string,
	imgUrl?:string
}

// #ifdef PRIVATE || SUBSCRIPTION


export const mpShareInit = (data:MpShare) => {
	wxAppMessageShareData(data)
	wxTimelineShareData(data)
}


// #endif



